/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconDelete: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M608 96a64 64 0 0 1 63.84 59.2L672 160v64h192a32 32 0 0 1 3.744 63.776L864 288h-32v549.824c0 48.704-40.576 87.328-90.432 90.016L736 928H288c-50.496 0-92.864-36.864-95.84-84.8L192 837.824V288H160a32 32 0 0 1-3.744-63.776L160 224h192V160a64 64 0 0 1 59.2-63.84L416 96h192z m160 192H256v549.824c0 12.768 11.808 24.384 28.16 25.984L288 864h448c17.024 0 30.016-10.72 31.808-23.264l0.192-2.912V288z m-352 96a32 32 0 0 1 31.776 28.256L448 416v320a32 32 0 0 1-63.776 3.744L384 736V416a32 32 0 0 1 32-32z m192 0a32 32 0 0 1 31.776 28.256L640 416v320a32 32 0 0 1-63.776 3.744L576 736V416a32 32 0 0 1 32-32z m0-224h-192v64h192V160z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconDelete.defaultProps = {
  size: 18,
};

export default IconDelete;
